package com.zyfdroid.backupftpserver.ftplets;

import android.content.Context;
import android.content.pm.PackageManager;
import android.util.Log;

import org.apache.ftpserver.ftplet.FileSystemFactory;
import org.apache.ftpserver.ftplet.FileSystemView;
import org.apache.ftpserver.ftplet.FtpException;
import org.apache.ftpserver.ftplet.User;

public class MyFtpFileSystemFactory implements FileSystemFactory {
    public MyFtpFileSystemFactory(PackageManager pm, Context ctx) {
        this.pm = pm;
        this.ctx = ctx;
    }

    public PackageManager pm;
    public Context ctx;
    @Override
    public FileSystemView createFileSystemView(User user) throws FtpException {
        Log.e("Get","Ftpfs created!");
        return new MyFileSystemView(pm,ctx);
    }
}
